Update with master changes
authorAlex Crichton <alex@alexcrichton.com>
Mon, 7 Jul 2014 13:27:09 +0000 (06:27 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 7 Jul 2014 13:27:09 +0000 (06:27 -0700)
libs/hammer.rs
libs/toml-rs
src/cargo/core/package_id.rs
src/cargo/core/resolver.rs
src/cargo/core/source.rs
src/cargo/sources/git/source.rs

index b8d306fd2e96bafa3dbbc8da72fd787c4f77978f..bbb7848676698ec94d186e2c910ab82452d07433 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b8d306fd2e96bafa3dbbc8da72fd787c4f77978f
+Subproject commit bbb7848676698ec94d186e2c910ab82452d07433
index 6e0701caa513e11f939899c4d6c258537796c0d3..624d5398184ccd500c3ce02338006f32f380fcc9 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 6e0701caa513e11f939899c4d6c258537796c0d3
+Subproject commit 624d5398184ccd500c3ce02338006f32f380fcc9
index 7e268c45c67d15d36989b5e15acf7467e1c16edf..aa03dd18512d49fb845e5d57e3601caf51ffe5f0 100644 (file)
@@ -1,5 +1,4 @@
 use semver;
-use url;
 use url::Url;
 use std::fmt;
 use std::fmt::{Show,Formatter};
@@ -38,7 +37,7 @@ trait ToUrl {
 
 impl<'a> ToUrl for &'a str {
     fn to_url(self) -> Result<Url, String> {
-        url::from_str(self)
+        Url::parse(self)
     }
 }
 
index f50d3912cd131a38234b383376c705579a704f4b..3ca67c7091f316733781aca77100eecc73d47864 100644 (file)
@@ -58,7 +58,6 @@ pub fn resolve<R: Registry>(deps: &[Dependency],
 
 #[cfg(test)]
 mod test {
-    use url;
     use hamcrest::{assert_that, equal_to, contains};
 
     use core::source::{SourceId, RegistryKind, Location, Remote};
@@ -71,7 +70,7 @@ mod test {
 
     impl ToDep for &'static str {
         fn to_dep(self) -> Dependency {
-            let url = url::from_str("http://example.com").unwrap();
+            let url = from_str("http://example.com").unwrap();
             let source_id = SourceId::new(RegistryKind, Remote(url));
             Dependency::parse(self, Some("1.0.0"), &source_id).unwrap()
         }
@@ -107,7 +106,7 @@ mod test {
     }
 
     fn dep(name: &str) -> Dependency {
-        let url = url::from_str("http://example.com").unwrap();
+        let url = from_str("http://example.com").unwrap();
         let source_id = SourceId::new(RegistryKind, Remote(url));
         Dependency::parse(name, Some("1.0.0"), &source_id).unwrap()
     }
index e49bdcb2ed643216bf8886e925e9645be2830c96..cbad3cd06f4039afb5930e04eae1165205ab4838 100644 (file)
@@ -1,7 +1,6 @@
 use std::fmt;
 use std::fmt::{Show, Formatter};
 
-use url;
 use url::Url;
 
 use core::{Summary, Package, PackageId};
@@ -82,7 +81,7 @@ impl Location {
         if s.starts_with("file:") {
             Ok(Local(Path::new(s.slice_from(5))))
         } else {
-            url::from_str(s).map(Remote).map_err(|e| {
+            Url::parse(s).map(Remote).map_err(|e| {
                 human(format!("invalid url `{}`: `{}", s, e))
             })
         }
@@ -146,7 +145,7 @@ impl SourceId {
 
     pub fn for_central() -> SourceId {
         SourceId::new(RegistryKind,
-                      Remote(url::from_str("https://example.com").unwrap()))
+                      Remote(Url::parse("https://example.com").unwrap()))
     }
 
     pub fn get_location<'a>(&'a self) -> &'a Location {
index 24ab5e8e0114930e4cda645fbb1ae5ea6a3da354..cb8677b3d92813cb5d4cec2db752bac0148562e5 100644 (file)
@@ -181,7 +181,6 @@ impl<'a, 'b> Source for GitSource<'a, 'b> {
 
 #[cfg(test)]
 mod test {
-    use url;
     use url::Url;
     use core::source::Remote;
     use super::ident;
@@ -227,6 +226,6 @@ mod test {
     }
 
     fn url(s: &str) -> Url {
-        url::from_str(s).unwrap()
+        from_str(s).unwrap()
     }
 }